package org.singledog.form.builder.parser;


import org.singledog.form.builder.ComponentType;
import org.singledog.form.builder.view.View;

/**
 * @author adam
 * @date 2019/4/30
 */
public interface ComponentParser {

	/**
	 * which component does this parser support
	 * @return
	 */
	ComponentType supportType();

	/**
	 * Parse component to view for display purpose.
	 * @param code component code
	 * @return view
	 */
	View parseView(String code);

}
